package com.tencreat.domain.mall;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tencreat.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import com.tencreat.common.core.domain.dto.BaseEntityDTO;


/**
 * app下载记录对象 app_download_record
 *
 * @Author tencreat
 * @Company: 深圳腾创互联科技有限公司
 * @link: https://tencreat.com
 * @Date 2022-12-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("app_download_record")
public class AppDownloadRecord extends BaseEntityDTO {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;
    @Excel(name = "下载类型 0-安卓 1-苹果")
    @ApiModelProperty(value= "下载类型 0-安卓 1-苹果")
    @TableField("`type`")
    private Integer type;
    @Excel(name = "下载地址")
    @ApiModelProperty(value= "下载地址")
    @TableField("`app_url`")
    private String appUrl;
    @Excel(name = "版本ID")
    @ApiModelProperty(value= "版本ID")
    @TableField("`version_id`")
    private Long versionId;
    @TableField("`create_by`")
    private String createBy;
    @TableField("`create_time`")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @TableField("`update_by`")
    private String updateBy;
    @TableField("`update_time`")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    @Excel(name = "备注")
    @ApiModelProperty(value= "备注")
    @TableField("`remark`")
    private String remark;
}
